//
//  HZSettingAndHelpModel.m
//  MyDoctor
//
//  Created by thf on 16/5/5.
//  Copyright © 2016年 heiyan. All rights reserved.
//

#import "HZSettingAndHelpModel.h"

@implementation HZSettingAndHelpModel

+(instancetype)settingAndHelpWithDict:(NSDictionary*)dict{
    
    HZSettingAndHelpModel* model = [[HZSettingAndHelpModel alloc]init];
    
    [model setValuesForKeysWithDictionary:dict];
    
    return model;
}


+(NSArray *)getSettingAndHelpArray{
    
    NSString* path = [[NSBundle mainBundle]pathForResource:@"settingAndHelp.plist" ofType:nil];
    
    NSArray* arr = [NSArray arrayWithContentsOfFile:path];
    
    NSMutableArray* arrM = [NSMutableArray array];
    
    for (NSDictionary* dict in arr) {
        
        HZSettingAndHelpModel* model = [HZSettingAndHelpModel settingAndHelpWithDict:dict];
        
        [arrM addObject:model];
    }
    
    return arrM.copy;

}

@end
